import request from '@/utils/request'

/// 查询标签列表
export const getTagListApi = (params) => {
  return request({
    url: '/ydd_cate/list',
    method: 'get',
    params: params
  })
}

// 查询单个标签
export const getTagInfoApi = (params) => {
  return request({
    url: '/ydd_cate/rowInfo',
    method: 'get',
    params: params
  })
}


// 增加标签
export const addTagApi = (data) => {
  return request({
    url: '/ydd_cate/add',
    method: 'post',
    data: data
  })
}

// 修改标签
export const editTagApi = (data) => {
  return request({
    url: '/ydd_cate/update',
    method: 'post',
    data: data
  })
}
// 删除标签
export const delTagInfoApi = (params) => {
  return request({
    url: '/ydd_cate/del',
    method: 'get',
    params: params
  })
}
// 分类列表
export const delTagInfoApiaal = (params) => {
  return request({
    url: '/ydd_cate/all',
    method: 'get',
    params: params
  })
}
